using System;
using System.ComponentModel.Composition;
using System.Linq.Expressions;
using OrbitOne.CRMLyncInfoDashboard.CRM.OrganizationData;
using OrbitOne.CRMLyncInfoDashboard.CRM.WCF;

namespace OrbitOne.CRMLyncInfoDashboard.CRM.OData
{
    [Export(typeof(ICrmLeadMetadataProvider))]
    public class CrmLeadMetadataProvider : CrmMetadataProvider<Lead>, ICrmLeadMetadataProvider
    {
       
        [ImportingConstructor]
        public CrmLeadMetadataProvider(IWCFHelper wcfHelper, IClientScript clientScript) : base(wcfHelper, clientScript)
        {
        }

        public override Expression<Func<IDataCollection, object>> BindingTarget
        {
            get { return mc => mc.LeadData; }
        }
    }
}